From: David Zeuthen Date: Mon, 31 Jan 2011 20:53:56 +0000 (-0500) Subject: calendar: Fix grid non-US week layouts X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9157 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=25434e42d0d933f12fcc2a6436407218e5496268;p=gnome-shell.git calendar: Fix grid non-US week layouts http://people.freedesktop.org/~david/calendar-grid-non-US-locale-collapse-bug.png This was discovered when working on bug 641049: https://bugzilla.gnome.org/show_bug.cgi?id=641049 Signed-off-by: David Zeuthen --- diff --git a/js/ui/calendar.js b/js/ui/calendar.js index dcea56672..09a05531d 100644 --- a/js/ui/calendar.js +++ b/js/ui/calendar.js @@ -578,7 +578,7 @@ Calendar.prototype = { // Hack used in lieu of border-collapse - see gnome-shell.css if (row == 2) styleClass = 'calendar-day-top ' + styleClass; - if (iter.getDay() == 0) + if (iter.getDay() == this._weekStart) styleClass = 'calendar-day-left ' + styleClass; if (_sameDay(now, iter))